NAME= 		Dispatcher.bin

SRC_COMMON= 	../library
SRC_CPP=	$(SRC_COMMON)/mutex.cpp		\
		$(SRC_COMMON)/saddr.cpp		\
		$(SRC_COMMON)/socket.cpp	\
		$(SRC_COMMON)/thread.cpp	\
		$(SRC_COMMON)/protocol.cpp	\
		computethread.cpp		\
		serverhandler.cpp		\
		dispatcher.cpp			\
		main.cpp

CFLAGS=		-W -Wall -ansi -pedantic -O2 -g
CLIBS=		-pthread

CC=		g++

all:	$(NAME)

$(NAME):
	$(CC) $(CFLAGS) $(CLIBS) $(SRC_CPP) -o $(NAME)

clean:
	rm -f *~

fclean:	clean
	rm -f $(NAME)

re:	fclean all
